//
//  WoController.m
//  网易新闻
//
//  Created by dllo on 15/10/5.
//  Copyright (c) 2015年 Lx. All rights reserved.
//

#import "WoController.h"

@interface WoController ()

@end

@implementation WoController
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        [self createCollectionView];
    }
    return self;
}

- (void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBar.hidden = YES;
}

- (void)createCollectionView{
    UIImageView *view = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 375, 667)];
    [view setImage:[UIImage imageNamed:[[NSBundle mainBundle]pathForResource:@"S51010-155620" ofType:@"jpg"]]];
    [self.view addSubview:view];
    
    UIActivityIndicatorView* activityIndicatorView = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(0,0,150,150)];
    activityIndicatorView.center = view.center;
    activityIndicatorView.activityIndicatorViewStyle= UIActivityIndicatorViewStyleWhiteLarge;
    [activityIndicatorView setColor:[UIColor redColor]];
    [self.view addSubview:activityIndicatorView];
    [activityIndicatorView startAnimating];
    [activityIndicatorView release];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
